<?php

    function secure_request($request)
    {
        if(is_numeric($request))
        {
            $request = intval($request);
        }
        else
        {
            $request = mysql_real_escape_string($request);
            $request = addcslashes($request, '%_');
        }

        return $request;
        
    }

    function html($request)
    {
        return htmlentities($request);
    }

?>
